-- GENERATED SPELL FOR [Chaotic Rift] --


function spell0_26918(pUnit, Event) --@Chaotic Energy Burst,n/a--
pUnit:FullCastSpellOnTarget(47688,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26918', 604, 1)
end

function spell1_26918(pUnit, Event) --@Charged Chaotic Energy Burst,n/a--
pUnit:FullCastSpellOnTarget(47737,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26918', 616, 1)
end

function Sorts_26918(pUnit, Event)
local choix_sorts_26918 = math.random(0, 1)
if choix_sorts_26918 == 0 then
pUnit:RegisterEvent('spell0_26918', 1, 1)
end
if choix_sorts_26918 == 1 then
pUnit:RegisterEvent('spell1_26918', 1, 1)
end
end

function mob26918_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26918', math.random(1500, 3000), 1)
end

function mob26918_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26918_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26918_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26918, 1, 'mob26918_Action')
RegisterUnitEvent(26918, 2, 'mob26918_Leave')
RegisterUnitEvent(26918, 3, 'mob26918_Kill')
RegisterUnitEvent(26918, 4, 'mob26918_Die')
